public class Demo{
    public static int num;
    public static void main(String[] args){
        // Demo.num = 10;
        
        Demo demo1 = new Demo();
        demo1.num = 10;
        Demo demo2 = new Demo(); 
        System.out.println(demo1.num);
        System.out.println(demo2.num);
    }
}